import { IController } from "./IController";
import { IModel } from "./IModel";
import { EngineView } from "../../../engine/EngineView";


export class View<C extends IController = any, M extends IModel = any> extends EngineView {

    private _model: M;
    private _controller: C;

    setModel(m: M): void {
        this._model = m;
    }

    getModel(): M {
        return this._model;
    }

    setController(c: C): void {
        this._controller = c;
    }

    getController(): C {
        return this._controller;
    }


}